dict = {"name": "小明",
        "age": 18,
        "gender": True}
# 迭代遍历
# 变量k是每一次循环中，获取到的键值对的key
for k in dict:
    print("%s - %s" % (k, dict[k]))